﻿myApp.controller('HomeController', ['$scope','MuseumService', function ($scope,MuseumService) {
    $scope.Greetings = "Hello Home"

    MuseumService.getmus().then(function (data) {
        $scope.mList = data;
    });

    $scope.DoSearch = function (str) {
        alert(str);
        
        MuseumService.getMuseumsSearch(str).then(function (data) {
            $scope.mList = data;
        });
    }

}]);